package com.chief.mybatisplus;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonValue;

import java.util.Objects;

public enum SexEnum {

    MAN("man",1),WOMAN("woman",0);

    private String code;

    @EnumValue
    private Integer x;

    SexEnum(String code, Integer x) {
        this.code = code;
        this.x = x;
    }

    public String getCode() {
        return code;
    }

    public Integer getX() {
        return x;
    }
}
